{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	
	<!-- 标题栏 -->
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>抽成设置</h2>
		</div>
		<div class="pull-right">
		</div>
	</header>

	<div class="main-box-body clearfix">
		<!-- 修改密码表单 -->
		<form method="post" class="form-horizontal">
			<div class="form-group">
				<label class="col-lg-2 control-label">抽成比例：</label>
				<div class="col-lg-4">
					<input type="text" name="percentage" class="col-xs-10 col-sm-5" value="{$percentage}"/>
				</div>
				<div class="col-lg-4">
					填写 0 到 1 之间的数字。 若用户充值 1000 元, 抽成比例为 0.7，则需要向该代理打款 1000 x 0.7 = 700 元
					{notempty name="qudao_percentage"}
						<P style="color:red">
					您的抽成比例是 {$qudao_percentage}, 请填写小于 {$qudao_percentage} 的数值, 否则将亏本</P>
					{/notempty}
					
				</div>
			</div>
			<div class="form-group">
				<div class="col-lg-offset-2 col-lg-10">
					<button type="submit" class="btn btn-primary submit-btn ajax-post" target-form="form-horizontal">确 认</button>
					<button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}